package com.zp.crm.dto.Lxr;

import java.util.List;
import com.zp.crm.entity.LxrEntity.LxrEntity;

public class LxrDto {

	public String Html(List<LxrEntity> list) {
		
		StringBuffer s=new StringBuffer();
		
		s.append("<table class='table'><tr><th>姓名</th><th>性别</th><th>职位</th><th>办公电话</th><th>手机</th><th>备注</th><th>操作</th></tr>");
		
		for (LxrEntity m : list) {
			s.append("<tr><td><input type='hidden' value='"+m.getId()+"'/>"+m.getName()+"</td><td>"+m.getSex()+"</td><td>"+m.getZw()+"</td><td>"+m.getBgdh()+"</td><td>"+m.getPhone()+"</td><td>"+m.getBz()+"</td>");
			s.append("<td><a class='inner_btn LxrListDelete'>删除</a></td>");
			s.append("</tr>");
		}
		
		if(list.size()==0){
			s.append("<tr><td colspan='7' style='text-align:center'>暂无此联系人信息</td></tr>");
		}
		
		s.append("</table>");
		
		return s.toString();
	}

}
